<template>
    <div class="TodayStatus">
         <div class="pageTitle" > 
            <span @click="goBack" class="goBack">{{'<'}}</span>
            今日状态统计分析 
        </div>

        <div class="statistics">
            <div>
                <img class="timeCount" :src="timeCount" alt="">
            </div>
            <div class="analysisTitle">状态记录详情</div>
            <div class="analysis">
                <ul>
                    <li>
                        <div class="type">
                            <span class="circle"></span>
                            <span class="status">
                                摆烂<span class="time">2小时</span>
                            </span>
                        </div>
                        <div class="navIcon"> > </div>
                    </li>
                    <li>
                        <div class="type">
                            <span class="circle"></span>
                            <span class="status">
                                学习<span class="time">10分钟</span>
                            </span>
                        </div>
                        <div class="navIcon"> > </div>
                    </li>
                    <li>
                        <div class="type"> 
                            <span class="circle"></span>
                            <span class="status">
                                运动<span class="time">1小时</span>
                            </span>
                        </div>
                        <div class="navIcon"> > </div>
                    </li>
                </ul>

            </div>
        </div>
    </div>
</template>

<script setup lang="ts">

import timeCount from '@/assets/imgs/timecount.png'

const goBack=()=>{
    history.back()
}

</script>

<style lang="less" scoped>
.TodayStatus{
    padding: 15px;
    font-size: 18px;
    box-sizing: border-box; 
    min-height: calc(100vh - 30px);
    .pageTitle{
        position: relative;
        font-size: 30px;
        .goBack{
            position: absolute;
            left: 0;
            text-align: left;
        }
    }


    .analysisTitle{
        text-align: left;
    }

    .statistics{
        .timeCount{
            width: 100%;
            margin-top: 10px;
        }
        .analysis{
            border: solid 2px;
            background: #f4e2ba;
            
            ul{
                li{
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    padding: 10px 15px;

                    .type{
                        display: flex;
                        flex-direction: row;
                        justify-content: center;
                        align-items: center;
                        gap: 10px;

                        .circle{
                            width: 28px;
                            height: 28px;
                            border-radius: 14px;
                            background:#decca4;
                        }

                        .status{
                            display: flex;
                            flex-direction: column;
                            text-align: left;
                            .time{
                                font-size: 12px;
                            }
                        }
                    }

                    .navIcon{
                        font-size: 25px;
                    }
                }
            }

        }
    }
}

</style>